Workaround for wx bug causing layout problems in recovery dialog
authorMartin Steghöfer <martin@steghoefer.eu>
Wed, 6 Jun 2018 10:55:07 +0000 (11:55 +0100)
committerJames Cowgill <jcowgill@debian.org>
Wed, 6 Jun 2018 10:55:07 +0000 (11:55 +0100)
commitf2c13c7d1abb70f4428aa4c56bfd80d7ca111d94
tree785555490fc66c23ab03e8a05354c3be2c9ede56
parent62d378652a5ac99a810d8c1350acd35f05d9c93a
Workaround for wx bug causing layout problems in recovery dialog

Forwarded: lllucius@gmail.com, 2014-10-20
Bug-Debian: http://bugs.debian.org/765341

Workaround for a bug in wxWidgets 3.0 that causes the Fit()
function to fail in certain desktop environments (gnome, xfce)
before the first window of the same style class is shown on
screen (http://trac.wxwidgets.org/ticket/16440). As a workaround,
call Fit() and other methods that depend on its results again
*after* we know that the window has been shown. While the bug
may affect other calls to Fit() on a low level, the workaround
is necessary only for the recovery dialog, which is particularly
vulnerable because:
1. It is shown very, very early in the program execution and
therefore very likely to be the first dialog of its style class
shown on screen.
2. It doesn't have scrollbars or flexible-size controls that
could compensate the wrong dialog size.

Gbp-Pq: Name 0002-workaround-wxwidgets-fit-recovery.patch
src/AutoRecovery.cpp